package com.clhbolg.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】业务对象 t_user_info
 *
 * @author cailinhu
 * @date 2023-02-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class UserInfoBo extends BaseEntity {

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 邮箱号
     */
    @NotBlank(message = "邮箱号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String email;

    /**
     * 用户昵称
     */
    @NotBlank(message = "用户昵称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nickname;

    /**
     * 用户头像
     */
    @NotBlank(message = "用户头像不能为空", groups = { AddGroup.class, EditGroup.class })
    private String avatar;

    /**
     * 用户简介
     */
    @NotBlank(message = "用户简介不能为空", groups = { AddGroup.class, EditGroup.class })
    private String intro;

    /**
     * 个人网站
     */
    @NotBlank(message = "个人网站不能为空", groups = { AddGroup.class, EditGroup.class })
    private String website;

    /**
     * 是否订阅
     */
    @NotNull(message = "是否订阅不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isSubscribe;

    /**
     * 是否禁用
     */
    @NotNull(message = "是否禁用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isDisable;


}
